import request from '@/utils/request';
import { data } from 'autoprefixer';

export  function  getCustomerlists(){
    return request({
        url:'/jsPublicize/page?title=&timeRange=&jsBusinessType=js_style&pageNum=1&pageSize=10',
        method:'get',
        headers:{
            "Authorization": 'Bearer eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjA0OWZiZTQxLWUwNWEtNGQ0Zi1iOWQxLTdmMGY3NjRmNDE3ZCJ9.ducOO90ocTmSUilt9sOMIdnhHqWoBzu9khs1nE_wzncBXjy8O4-8W3ns0n6BKHzlofstdXEMftuKnOHuQ7iTFA'
        }


    });
}
//publicizeId,mainPic,displaying,jsBusinessType
export  function  getCustomerShow(params){
    return request({
        url:`/jsPublicize/`,
        method:'put',
        data: params,
    });
}
export function  getPublicizeId(publicizeId){
    return request({
        url:`/jsPublicize/${publicizeId}`,
        method:'get',
    });
}
export function getAddpublicizeId(data){
    return request({
        url:'/jsPublicize',
        method:'post',
        data:data
    });
}
export function getPlatformUsers(){
    return request({
        url:'jsUser/page?nickName=&company=&pageNum=1&pageSize=10',
        method:'get',

    });
}
export function DeletePlatformUsers(publicizeIdList){
    return request({
        url:`/jsPublicize?publicizeIdList=${publicizeIdList}`,
        method: 'delete',


    });
}
export function  getSearch(searchData){
    return request({
        url:`/jsPublicize/page?title=${searchData.value.title}&timeRange=${searchData.value.timeRange}&jsBusinessType=js_style&pageNum=1&pageSize=10`,
        method:'get',
    });
}



